package main

import (
	pb "gitee.com/bollowang/grpcdemo/proto"
	"google.golang.org/grpc"
	"google.golang.org/grpc/credentials/insecure"
	"log"
)

const (
	PORT = ":8080"
)

func main() {
	conn, err := grpc.Dial("localhost"+PORT, grpc.WithTransportCredentials(
		insecure.NewCredentials()))
	if err != nil {
		log.Fatal(err)
	}
	defer conn.Close()
	client := pb.NewGreetServiceClient(conn)
}
